*** Settings ***
Documentation  和御APP业务监控
Library  Collections
Library  RequestsLibrary
Library  ../SassAPP/SassHeyuAPP.py
Suite Setup  WriteParams
Test Setup    Run keywords
...    DestroyOrder     User=0
...    AND    DestroyOrder      User=1

Resource  ../SassAPP/Variables/params.txt



*** Variables ***

*** Test Cases ***

0001
    [Tags]  【我的客户/客户详情】
    [Documentation]  客户详情，展现头像名称，以及与我（我的团队）相关的订单
    create session  customerDetail  ${domains}     verify=True
    ${params}   RequestJson    customerId=XE350B8XN
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     customerDetail     webapi/app/customer/detail     json=${data}       headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

0002
    [Tags]  【我的客户/拓展用户】
    [Documentation]  提供三种拓展（朋友圈，邀请。。）的入口
    create session  customerExpand  ${domains}     verify=True
    ${params}   RequestJson    customerId=XE350B8XN
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8      Cookie=${cookies}
    ${resps}    post request     customerExpand     webapi/app/customer/expand     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0003
    [Tags]  【我的客户/客户列表】
    [Documentation]  我的客户列表
    create session  customerList    ${domains}  verify=True
    ${params}   RequestJson
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     customerList     webapi/app/customer/list     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

#未完成，先跳过了，需要构造客户后再删除
0004
    [Tags]  【我的客户/删除客户】
    [Documentation]  从客户列表中删除，将同步从用户页面删除
    create session  customerRemove    ${domains}  verify=True
    ${params}   RequestJson    customerId=X2352532
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     customerRemove     webapi/app/customer/remove     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

    #{"status": "1", "msg": "success", "result": {"input": {"customerId": "X2352532"}, "1": {"result": {"message": "已经移除"}}}}


0005
    [Tags]  【计费模板/信息费模板详情】
    [Documentation]  用户当前信息费模板详情
    create session  agentDetail    ${domains}  verify=True
    ${params}   RequestJson
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     agentDetail     webapi/app/feetemp/agent/detail     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0006
    [Tags]  【计费模板/信息费模板保存】
    [Documentation]  用户信息费模板提交
    create session  agentDetailsubmit    ${domains}  verify=True
    ${params}   DiyJson    type=amount     value=5
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     agentDetailsubmit     webapi/app/feetemp/agent/submit     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

#tempId这里要写构造方法
0007
    [Tags]  【计费模板/模板详情】
    [Documentation]  计费模板详情
    create session  serviceDetail    ${domains}  verify=True
    ${params}   DiyJson    tempId = 1415432532
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     serviceDetail     webapi/app/feetemp/service/detail     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0008
    [Tags]  【计费模板/模板详情信息展现】
    [Documentation]  计费模板展示信息
    create session  serviceInfo    ${domains}  verify=True
    ${params}   DiyJson    tempId = 1415432532
    ${cookies}  Cookie  User=0
    ${data}     to json  ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request     serviceInfo     webapi/app/feetemp/service/info     json=${data}  headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


#这里的参数要研究下，有多个输入类型
0009
    [Tags]  【计费模板/模板信息提交】
    [Documentation]  计费模板信息提交，包括新增模板、更新模板信息
    create session  ServiceSubmit   ${domains}  verify=True
    ${params}   DiyJson  action=add    tempId=1242142  name=按时常计费  cata=time   isDefault=0     #还有其他参数呢- -


0010
    [Tags]  	【等待计费模板/模板详情】
    [Documentation]  	等待计费模板信息
    create session  waitDetail  ${domains}  verify=True
    ${cookies}  Cookie  User=0
    ${headers}  Create Dictionary    Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request  waitDetail   webapi/app/feetemp/wait/detail     headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

0011
    [Tags]  【等待计费模板/用户模板提交】
    [Documentation]  等待计费模板信息
    create session      waitSubmit     ${domains}      verify=True
    ${params}   DiyJson    freeMin=10      feeUnits=1      feePrice=1.00
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary   Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request    waitSubmit      webapi/app/feetemp/wait/submit     json=${data}     headers=${headers}
    Should Be Equal As Strings    ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}    get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should be empty  ${result}

#这个有4个状态
0012
    [Tags]  	【系统资源获取】
    [Documentation]     按前端类型，返回对应的系统资源信息
    create session  material    ${domains}  verify=True
    ${params}   DiyJson  biztype=app.startup    app=a_heyu
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request  material  webapi/app/main/material   json=${data}    headers=${headers}
    ${resp}     to json     ${resps.content}
    should be equal as strings  ${resps.status_code}    200
    ${status}   get from dictionary     ${resp}     status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}    get from dictionary  ${resp}   result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should contain  ${result}   biztype

0013
    [Tags]  【首页/基础参数】
    [Documentation]     当前用户相关参数，供前端进行全局性的界面设置
    create session      mainProfile     ${domains}      verify=True
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request  mainProfile   webapi/app/main/profile    headers=${headers}
    ${resp}     to json  ${resps.content}
    should be equal as strings  ${resps.status_code}    200
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0014
    [Tags]  【用户端信息上报】
    [Documentation]  用户端信息上报，包括位置信息
    create session  mainReport      ${domains}      verify=True
    ${params}   DiyJson  location=30.58913803100586,114.22258758544922
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8   Cookie=${cookies}
    ${resps}    post request  mainReport    webapi/app/main/report     json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should be empty  ${result}




0015
    [Tags]  【app/版本更新】
    [Documentation]  APP版本更新检测
    Create_Session    versionCheck   ${domains}     verify=True
    ${cookies}  Cookie  User=0
    ${params}   RequestJson
    ${data}    To Json     ${params}
    ${headers}     Create Dictionary    Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resp}    POST Request   versionCheck   webapi/app/main/version/check  json=${data}  headers=${headers}
    ${resps}   To Json     ${resp.content}
    Should Be Equal As Strings    ${resp.status_code}    200
    ${status}   Get From Dictionary     ${resps}    status
    ${msg}  Get From Dictionary     ${resps}    msg
    should contain  ${resps}  result
    Should Be Equal As Strings  ${status}   1
    Should Be Equal As Strings  ${msg}   success


0016
    [Tags]  【新手任务/任务x完成】
    [Documentation]  新手任务，任务1、2、3，点击查看即可
    create session  taskReport   ${domains}  verify=True
    ${params}   DiyJson  step=1
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  Create Dictionary    Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  taskReport    webapi/app/newuser/task/report     json=${data}     headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should be empty    ${result}


0017
    [Tags]  【新手任务/任务总状态】
    [Documentation]  新手任务，完成总情况，返回进度、相应的提示信息。
    create session  taskStatus  ${domains}  verify=True
    ${cookies}  Cookie  User=0
    ${headers}  Create Dictionary    Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  taskStatus    webapi/app/newuser/task/status     headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0018
    [Tags]  【新手任务/第5任务执行情况】
    [Documentation]  第5任务是需要返回10个订单的完成情况
    create session  task5  ${domains}  verify=True
    ${cookies}  Cookie  User=0
    ${headers}  Create Dictionary    Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  task5    webapi/app/newuser/task/task5     headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

#有三个状态
0019
    [Tags]  【订单/接单/接单请求】
    [Documentation]  ???订单/接单/接单请求
    create session  acceptApply     ${domains}  verify=True
    ${orderNo}  MakeSubmitOrder
    ${params}   RequestJson    sence=socket push     app=a_heyu  orderNo=${orderNo}     reason=accept
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  acceptApply   webapi/app/order/accept/apply  json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0020
    [Tags]  【订单/接单/接单取消】
    [Documentation]     ???订单/接单/接单取消
    create session  oderAccept  ${domains}  verify=True
    ${orderNo}  AcceptOrder
    ${params}   RequestJson  sence=socket push     app=a_heyu  orderNo=${orderNo}     reason=accept
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  oderAccept   webapi/app/order/accept/cancel    json=${data}    headers=${headers}
    log to console  ${resps.content}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should be empty  ${result}


0021
    [Tags]  【订单/接单/二维码扫描接单】
    [Documentation]     面对面派单，出示二维码，接单者扫码，识别进入H5接单页面，并向后端发起扫码接单，带上code，后端返回对应的派单信息
    create session  qrcodeQuery     ${domains}      verify=True
    ${params}   RequestJson


0022
    [Tags]  【订单/接单/听单轮询】
    [Documentation]  订单/接单/听单轮询
    create session  acceptQuery     ${domains}      verify=True
    ${params}   RequestJson  clientMode=WORK_ON    timeline=2020-08-31 12:34:12    location=30.58913803100586,114.22258758544922
    ${data}     to json     ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  acceptQuery   webapi/app/order/accept/query    json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}



0023
    [Tags]  【订单/行程/取消服务】
    [Documentation]  服务中的订单予以取消。需要提交取消原因
    ${OrderNo}      AcceptOrder
    should not be empty  ${OrderNo}
    create session  actionCancel    ${domains}  verify=True
    ${params}   RequestJson  orderNo=${orderNo}   reason=测试机器人取消
    ${paramsReady}      RequestJson  orderNo=${orderNo}
    log to console  ${paramsReady}
    ${data}     to json  ${params}
    ${dataReady}    to json  ${paramsReady}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${readyResp}    post request  actionCancel      /webapi/app/order/action/ready      json=${dataReady}    headers=${headers}
    should be equal as strings  ${readyResp.status_code}     200
    ${resps}    post request  actionCancel  /webapi/app/order/action/cancel     json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0024
    [Tags]  	【订单/行程/完成服务】
    [Documentation]  订单/行程/完成服务
    create session  actionFinish        ${domains}      verify=True
    ${orderNo}  AcceptOrder
    ${params}   RequestJson  orderNo=${orderNo}   factDistance=123
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  actionFinish  /webapi/app/order/action/finish     json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}   status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0025
    [Tags]  【订单/行程/到达代驾服务位置】
    [Documentation]  订单/行程/到达代驾服务位置
    create session  actionReady     ${domains}      verify=True
    ${orderNo}  AcceptOrder
    ${params}   RequestJson  orderNo=${orderNo}
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  actionReady   webapi/app/order/action/ready  json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}


0026
    [Tags]  【订单/行程/开始服务】
    [Documentation]  订单/行程/开始服务
    create session  actionStart     ${domains}      verify=True
    ${orderNo}  AcceptOrder
    ${params}   RequestJson  orderNo=${orderNo}
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=1
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  actionStart   webapi/app/order/action/start  json=${domains} headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${msg}  get from dictionary  ${resp}    msg
    ${status}   get from dictionary  ${resp}    status
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings      ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

0027
    [Tags]  【订单/行程/停车等候】
    [Documentation]  订单/行程/停车等候
    create session  actionWait  ${domains}  verify=True
    ${orderNo}  AcceptOrder
    ${params}   RequestJson  action=pause  orderNo=${orderNo}
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  actionWait    webapi/app/order/action/wait   json=${data}    headers=${headers}
    should be equal as strings  ${resps.content}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}



0028
    [Tags]  【订单/收款/已线下收款】
    [Documentation]  用户端告知后端，已经完成了现金收款。
    create session  collectOffline  ${domains}  verify=True
    ${orderNo}  MakeSendOrder
    ${params}   RequestJson    orderNo=${orderNo}
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}        post request  collectOffline    webapi/app/order/collect/offline   json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

0029
    [Tags]  【订单/收款/展现收款码】
    [Documentation]  订单/收款/展现收款码
    create session  collectQrcode   ${domains}  verify=True
    ${orderNo}  MakeSendOrder
    ${params}   RequestJson    orderNo=${orderNo}
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  collectQrcode     webapi/app/order/collect/qrcode    json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary     ${resp}     msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}

#这个请求参数有点长～
0030
    [Tags]  【派单订单/派单/更多司机派单】
    [Documentation]  ???派单订单/派单/更多司机派单
    create session  deliverBatch    ${domains}  verify=True
    ${params}   RequestJson  deliverType=auto  priceAgent=5    srcLocation=${srcLocation}  contactList=${contactList}
    log to console  ${params}
    ${data}     to json  ${params}
    log to console  ${data}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  deliverBatch      webapi/app/order/deliver/batch     json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}
    should be equal as strings  ${result}[message]  您的订单已经进入派单模式！


0031
    [Tags]  【派单订单/派单/派单取消】
    [Documentation]  派单订单/派单/派单取消
    create session  deliverCancel   ${domains}  verify=True
    ${orderNo}  MakeSendOrder
    ${params}   RequestJson    orderNo=${orderNo}  reason=测试机器人取消
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  deliverCancel     webapi/app/order/deliver/cancel    json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should be empty  ${result}




0032
    [Tags]  【派单订单/派单/提交派单】
    [Documentation]     派单订单/派单/提交派单
    create session  deliverSubmit   ${domains}  verify=True
    ${params}   RequestJson    priceAgent=5元   deliverType=auto    contactPhone=18571015163    srcLocation=${srcLocation}      destLocation=${destLocation}    confirmInfo=1
    ${data}     to json  ${params}
    ${cookies}  Cookie  User=0
    ${headers}  create dictionary  Content-Type=application/json   charset=utf-8  Cookie=${cookies}
    ${resps}    post request  deliverSubmit     webapi/app/order/deliver/submit    json=${data}    headers=${headers}
    should be equal as strings  ${resps.status_code}    200
    ${resp}     to json  ${resps.content}
    ${status}   get from dictionary  ${resp}    status
    ${msg}  get from dictionary  ${resp}    msg
    ${result}   get from dictionary  ${resp}    result
    should be equal as strings  ${status}   1
    should be equal as strings  ${msg}  success
    should not be empty  ${result}
    should be equal as strings  ${result}[message]  您的订单已经进入派单模式！


0033
    [Tags]  【订单/计费】
    [Documentation]  订单/计费
    create session  feeCalc     ${domains}  verify=True
    ${paramas}  RequestJson